import Login from './views/Login.vue'
import Reg from './views/Register.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import topUp from './views/ty/topUp.vue'
import betSlipSomeone from './views/ty/betSlip.vue'
import statistics from './views/ty/statistics.vue'


import {renderThumbStyle} from "element-ui/packages/scrollbar/src/util";

// 这里先获取角色的栏目，获取到他的路由,
let routes = [
    {
        role:0,
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        role:0,
        path: '/reg',
        component: Reg,
        name: '',
        hidden: true
    },
    {
        role:0,
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    // {
    //     role:1,
    //     path: '/',
    //     component: Home,
    //     name: '人员',
    //     iconCls: 'el-icon-message',//图标样式class
    //     children: [
    //         { path: '/main', component: Main, name: '主页', hidden: true  ,role:1},
    //         { path: '/user', component: User, name: '用户列表'  ,role:1},
    //     ]
    // },
    {
        role:1,
        path: '/',
        component: Home,
        name: '项目',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/topUp', component: topUp, name: 'topUp记录查询',role:1},
            { path: '/betSlipSomeone', component: betSlipSomeone, name: 'betSlipSomeone记录查询',role:1},
            { path: '/statistics', component: statistics, name: 'statistics查询',role:1},
            // { path: '/voicequery', component: VoiceQuery, name: '列表', hidden: true  ,role:1},
        ]
    },
    {
        role:0,
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;

